#ifndef __LIGHT_H__
#define __LIGHT_H__

#include <gl/gl.h>
#include <gl/glut.h>

#include "CoordF.h"

/*
 * Classe: Light
 *
 *   Luz simples para o ambiente 3D
 *
*/

class Light
{
      private:
              GLfloat lightPos[4]
                    , lightAmbient[4]
                    , lightDiffuse[4]
                    , lightSpecular[4];
              
      public:
             Light();
             ~Light() {}
             
             void setPos ( CoordF p ) { lightPos[0] = p.x; lightPos[1] = p.y; lightPos[2] = p.z; }
             void setAmbient ( CoordF a ) { lightAmbient[0] = a.x; lightAmbient[1] = a.y; lightAmbient[2] = a.z; }
             void setDiffuse ( CoordF d ) { lightDiffuse[0] = d.x; lightDiffuse[1] = d.y; lightDiffuse[2] = d.z; }
             void setSpecular ( CoordF s ) { lightSpecular[0] = s.x; lightSpecular[1] = s.y; lightSpecular[2] = s.z; }
             
             void setup();
};

#endif
